import Vue from "vue";
import VueRouter from "vue-router";
Vue.use(VueRouter)
// 导入组件
import Home from '@/views/Home'
import Enroll from '@/views/Enroll'          
import Login from '@/views/Login'     
const router = new VueRouter({
  routes: [
    // 页面重定向
    { path: "/", redirect: '/home',},
    { path: "/home", name: "home", component: Home },
    { path: "/enroll", name: "enroll", component: Enroll },
    { path: "/login", name: "login", component: Login },
  ]
})
// 暴露路由
export default router;
